var vertexShader = `
    void main(){
        gl_Position = vec4(0.0,0.0,0.0,1.0);
        gl_PointSize = 20.0;
    }
`
var fragmentShader = `
    void main(){
        gl_FragColor = vec4(1.0,0.0,0.0,1.0);
    }    
`

function load(){
    var gl = getWebGLContext('webgl')
    if(!gl){
       console.log("Get WebGL Context Failed")
       return
    }
    gl.clearColor(0.0,0.0,0.0,1.0)
    gl.clear(gl.COLOR_BUFFER_BIT);
    buildProgram(gl,vertexShader,fragmentShader)

    //绘制点
    gl.drawArrays(gl.POINTS,0,1)

}


